﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Ch12.Models
{
    /// <summary>
    /// 资金账户信息
    /// </summary>
    [Table("Account")]
    public class Account : EntitySet
    {
        /// <summary>
        /// 收据号
        /// </summary>
        [MaxLength(36)]
        public string ReceiptNumber { get; set; }
        /// <summary>
        /// 应缴金额
        /// </summary>
        [DefaultValue(0)]
        public decimal PaymentAmount { get; set; }
        /// <summary>
        /// 实缴金额
        /// </summary>
        [DefaultValue(0)]
        public decimal ActualAmount { get; set; }
        /// <summary>
        /// 本金
        /// </summary>
        [DefaultValue(0)]
        public decimal Principal { get; set; }
        /// <summary>
        /// 利息
        /// </summary>
        [DefaultValue(0)]
        public decimal Interest { get; set; }
        /// <summary>
        /// 金额,余额
        /// </summary>
        [DefaultValue(0)]
        public decimal Amount { get; set; }
        /// <summary>
        /// 使用金额
        /// </summary>
        [DefaultValue(0)]
        public decimal UsedAmount { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(256)]
        public string Remarks { get; set; }
    }
}